package com.ruoyi.app.domain.entity;

import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel(value = "用户-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @ApiModelProperty(value = "id")
    @Excel(name = "id")
    private Long id;

    @ApiModelProperty(value = "账号")
    @Excel(name = "账号")
    private String code;

    @ApiModelProperty(value = "openId")
    @Excel(name = "openId")
    private String openId;

    @ApiModelProperty(value = "昵称")
    @Excel(name = "昵称")
    private String nickName;

    @ApiModelProperty(value = "密码")
    @Excel(name = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱")
    @Excel(name = "邮箱")
    private String email;

    @ApiModelProperty(value = "电话")
    @Excel(name = "电话")
    private String phone;

    @ApiModelProperty(value = "年龄")
    @Excel(name = "年龄")
    private Long age;

    @ApiModelProperty(value = "性别 0-女 1-男")
    @Excel(name = "性别 0-女 1-男")
    private Long sex;

    @ApiModelProperty(value = "头像")
    @Excel(name = "头像")
    private String photo;

    @ApiModelProperty(value = "主页背景")
    @Excel(name = "主页背景")
    private String backgroundImg;

    @ApiModelProperty(value = "封禁状态 0-否 1-是")
    @Excel(name = "封禁状态 0-否 1-是")
    private Long ban;

    @ApiModelProperty(value = "注册类型")
    @Excel(name = "注册类型")
    private Long registerType;

    @ApiModelProperty(value = "删除状态 0-否 1-是")
    @Excel(name = "删除状态 0-否 1-是")
    private Long deleted;

    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;
}
